package com.fulihui.information.service;

import com.fulihui.information.api.CategoryStatisticsService;
import com.fulihui.information.biz.content.CategoryStatisticsManager;
import com.fulihui.information.dto.CategoryStatisticsDTO;
import com.fulihui.information.request.CategoryStatisticsQueryRequest;
import org.near.servicesupport.result.TMultiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import static org.near.servicesupport.result.ResultBuilder.succTMulti;

/**
 * @author Willard.Hu on 2017/2/15 0015.
 */
@Service("categoryStatisticsService")
public class CategoryStatisticsServiceImpl implements CategoryStatisticsService {
    @Autowired
    private CategoryStatisticsManager categoryStatisticsManager;

    /**
     * @see CategoryStatisticsService#equals(Object)
     */
    @Override
    public TMultiResult<CategoryStatisticsDTO> query(CategoryStatisticsQueryRequest request) {
        return succTMulti(categoryStatisticsManager.query(request));
    }
}
